package com.panda.controller;/**
 * @author 乐于吕
 * * @date 2024/10/21
 */

import com.panda.clients.NacosClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.annotation.Resources;

/**
 * @Author: 乐于吕
 * @CreateTime: 2024-10-21
 * @Description: 作为nacos的
 */

@RestController
@RequestMapping("/nacos")
public class NacosController {

    @Resource
    private NacosClient nacosClient;

    @GetMapping("/m1")
    public String method1() {
        String message = nacosClient.method1();
        return "NacosController  method1  success   --> NacosClient   message:" + message;
    }


}
